import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/Product/Index'
import ProductCreate from '@/components/Product/ProductCreate'
import ProductEdit from '@/components/Product/ProductEdit'
import ProductTypeIndex from '@/components/ProductType/ProductTypeIndex'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/Product/ProductCreate',
      name: 'ProductCreate',
      component: ProductCreate
    },
    {
      path: '/Product/ProductEdit',
      name: 'ProductEdit',
      component: ProductEdit
    },
    {
      path: '/ProductType/ProductTypeIndex',
      name: 'ProductTypeIndex',
      component: ProductTypeIndex
    },
  ]
})
